if __name__ == '__main__':
    # 递归算法
    def factorial(n):
        # 基线条件
        if n == 0 or n == 1:
            return 1
        # 递归条件
        else:
            return n * factorial(n - 1)
    print(f"递归算法_阶乘: 5! = {factorial(5)}")